{% extends 'indexBase.html' %}

{% block title %}源码管理详情-源码管理-源码管理系统{% endblock %}
{% block description %}<meta name="description" content="源码管理详情" />{% endblock %}
{% block keywords %}<meta name="keywords" content="源码管理详情" />{% endblock %}
{% block js %}
<script type="text/javascript" src="{{request.basePath}}/js/common.js?{{request.PUBLISH_FLAG}}"></script>
{% endblock %}

{% block content %}
	<table cellSpacing="0" cellPadding="0"  border="0" class="dfgl">
	  <TR>
	    <TD class="top_bottom">&nbsp;
	      <span class="h1">·项目管理详情</span>
	    </TD>
	  </TR>
	  <TR>
	    <TD class="mid">
		<table  width="100%" border="0" cellpadding="0" cellspacing="0">
		  <tr>
	            <td>
		      {% if message %}
		      <p class="pErrorInfo floatLeft">
			<font color="red">{{message}}</font>
		      </p>
		      {% endif %}
		      <p class="pRight marginTop6px">
			<input type="button" value="删除" class="bn_2" 
			       onclick="deleteConfirm('{{request.basePath}}/index/sourcecode/{{sourceCode.id}}/delete?type={{request.GET.type}}&traceId={{request.traceId}}')" />
			<input type="button" value="编辑" class="bn_2" 
			       onclick="location.href='{{request.basePath}}/index/sourcecode/{{sourceCode.id}}/edit?type={{request.GET.type}}&traceId={{request.traceId}}'" />
			<input type="button" value="返回" class="bn_2" 
			       onclick="location.href='{{request.basePath}}/index/sourcecode?type={{request.GET.type}}&traceId={{request.traceId}}'" />
		      </p>
		      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="infoList">
			<tbody>
			  <tr>
			    <th width="15%">名称</th>
			    <td>
			      {{sourceCode.name}}
			    </td>
			  </tr>
			  <tr>
			    <th>注释</th>
			    <td>
			      {{sourceCode.comment}}
			    </td>
			  </tr>
			  <tr>
			    <th>所属项目</th>
			    <td>
			      {{sourceCode.project.name}}
			    </td>
			  </tr>
			  <tr>
			    <th>源代码</th>
			    <td>
			      <textarea id="content" name="content" rows="10" cols="100" class="textarea">{{sourceCode.content}}</textarea>
			    </td>
			  </tr>
			  <tr>
			    <th>替换</th>
			    <td>
					{% for item in sourceCode.origLi %}
			      <p>
			      原始文本{{forloop.counter}}:<input type="text" id="orig{{forloop.counter}}" name="orig{{forloop.counter}}" value="{{item}}" />,
			      替换文本{{forloop.counter}}:<input type="text" id="repl{{forloop.counter}}" name="repl{{forloop.counter}}" value="" />
			      </p>
					{% endfor %}
			      <input type="button" value="替换" class="bn_2" onclick="replaceSourceCode()" />
			    </td>
			  </tr>
			  <tr>
			    <th>替换结果</th>
			    <td>
			      <textarea id="replResult" name="replResult" rows="10" cols="100" class="textarea"></textarea>
			    </td>
			  </tr>
			  <tr>
			    <th>创建时间</th>
			    <td>
			      {{sourceCode.createTime}}
			    </td>
			  </tr>
			</tbody>
	    	      </table>
	    	    </td>
		  </tr>
		</table>
	    </td>
	  </tr>
	  <tr>
            <td class="top_bottom">
              &nbsp;
            </td>
	  </tr>
	</table>
{% endblock %}
